<?php
$k_name=$_POST['name'];
$k_pas=md5($_POST['password']);
$server = "localhost";
$uname = "root";
$umm = "root";
$db = "maxik";
$con = mysqli_connect($server, $uname, $umm, $db);
$ll = "select * from admin where isim='$k_name' and password='$k_pas'";
$kaldi = mysqli_query($con, $ll);
if($kaldi && mysqli_num_rows($kaldi)>0){
    echo '登录成功';
}else{
    echo '用户名和密码有误！ '.mysqli_error($con);
}

